/* 学生管理系统 - 青春橙色主题样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 25%, #4ecdc4 50%, #45b7d1 75%, #96ceb4 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 154, 86, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(255, 154, 86, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(90deg, #ff9a56, #4ecdc4, #45b7d1) 1;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    background: linear-gradient(45deg, #ff6b35, #ff9a56, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

/* 返回按钮 */
.back-btn {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 154, 86, 0.6);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* 工具栏 */
.toolbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 154, 86, 0.2);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.toolbar::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #ff9a56, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 20px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 搜索表单 */
.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b35, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
}

/* 表单控件 */
.form-control {
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: #ff9a56;
    box-shadow: 0 0 0 3px rgba(255, 154, 86, 0.2);
    transform: translateY(-2px);
}

/* 文件输入框样式 */
.file-input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #ff9a56;
    background: rgba(255, 154, 86, 0.05);
}

.file-input:focus {
    outline: none;
    border-color: #ff9a56;
    box-shadow: 0 0 0 3px rgba(255, 154, 86, 0.2);
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* 排序按钮容器 */
.sort-buttons {
    display: inline-flex;
    flex-direction: column;
    margin-left: 8px;
    gap: 1px;
    vertical-align: middle;
}

/* 排序按钮基础样式 */
.sort-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 154, 86, 0.3);
    cursor: pointer;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 22px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 升序按钮样式 */
.sort-btn[data-order="asc"] {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    color: white;
    border-color: #4ecdc4;
    box-shadow: 0 3px 8px rgba(78, 205, 196, 0.4);
}

.sort-btn[data-order="asc"]:hover {
    background: linear-gradient(135deg, #45b7d1 0%, #4ecdc4 100%);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 5px 12px rgba(78, 205, 196, 0.6);
}

/* 降序按钮样式 */
.sort-btn[data-order="desc"] {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: white;
    border-color: #ff9a56;
    box-shadow: 0 3px 8px rgba(255, 154, 86, 0.4);
}

.sort-btn[data-order="desc"]:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9a56 100%);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 5px 12px rgba(255, 154, 86, 0.6);
}

/* 默认状态按钮样式 */
.sort-btn:not([data-order]) {
    background: rgba(255, 255, 255, 0.8);
    color: #999;
    border-color: rgba(0, 0, 0, 0.1);
}

.sort-btn:not([data-order]):hover {
    background: rgba(255, 154, 86, 0.1);
    color: #ff6b35;
    border-color: rgba(255, 154, 86, 0.3);
    transform: translateY(-1px);
}

/* 光泽效果 */
.sort-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.sort-btn:hover::before {
    left: 100%;
}

/* 激活状态 */
.sort-btn.active {
    animation: sortPulse 2s infinite;
    box-shadow: 0 0 0 2px rgba(255, 154, 86, 0.3);
}

@keyframes sortPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 154, 86, 0.4), 0 0 0 0 rgba(255, 154, 86, 0.7);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 5px 12px rgba(255, 154, 86, 0.6), 0 0 0 3px rgba(255, 154, 86, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 154, 86, 0.4), 0 0 0 0 rgba(255, 154, 86, 0.7);
    }
}

/* 表头样式优化 */
.table th {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 1rem;
    vertical-align: middle;
}

/* 表头文字和按钮对齐 */
.table th {
    display: table-cell;
    vertical-align: middle;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .sort-buttons {
        margin-left: 4px;
        gap: 0;
    }
    
    .sort-btn {
        font-size: 9px;
        padding: 2px 4px;
        min-width: 18px;
        height: 15px;
    }
}

/* 工具提示增强 */
.sort-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 基础按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6);
    background: linear-gradient(45deg, #5a6268, #495057);
}

.btn-primary {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 154, 86, 0.6);
}

.btn-success {
    background: linear-gradient(45deg, #4ecdc4, #96ceb4);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6);
}

.btn-warning {
    background: linear-gradient(45deg, #ffa726, #ff9800);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

.btn-warning:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.6);
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* 学生姓名链接美化 */
.student-name-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 6px;
}

.student-name-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff9a56, #4ecdc4);
    transition: width 0.3s ease;
}

.student-name-link:hover::before {
    width: 100%;
}

.student-name-link:hover {
    color: #ff9a56;
    background: rgba(255, 154, 86, 0.1);
    transform: translateY(-1px);
}

/* 表格样式 */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 154, 86, 0.2);
    overflow: hidden;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff9a56, #4ecdc4, #45b7d1);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.table th {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
}

.table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 154, 86, 0.1), rgba(78, 205, 196, 0.1));
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.2);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e8ed;
    background: white;
    color: #555;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.pagination button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 154, 86, 0.3), transparent);
    transition: left 0.5s;
}

.pagination button:hover::before {
    left: 100%;
}

.pagination button:hover {
    border-color: #ff9a56;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.3);
}

.pagination button.active {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(255, 154, 86, 0.3);
    animation: modalSlideIn 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: linear-gradient(45deg, #ff9a56, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 20px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 6s linear infinite;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
}

.modal-header {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.1); }
}

.modal-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #e1e8ed;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(255, 154, 86, 0.05), rgba(78, 205, 196, 0.05));
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 154, 86, 0.1) 0%, transparent 70%);
    animation: uploadGlow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-upload-area:hover::before {
    opacity: 1;
}

@keyframes uploadGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.file-upload-area:hover {
    border-color: #ff9a56;
    background: linear-gradient(45deg, rgba(255, 154, 86, 0.1), rgba(78, 205, 196, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 154, 86, 0.2);
}

.file-upload-area.dragover {
    border-color: #4ecdc4;
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        justify-content: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-group {
        min-width: 100px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff9a56, #ff6b35);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b35, #ff9a56);
}

/* 加载状态样式 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 154, 86, 0.3);
    border-radius: 50%;
    border-top-color: #ff9a56;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功/错误消息样式 */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: alertShine 2s infinite;
}

@keyframes alertShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.alert-success {
    background: linear-gradient(45deg, #4ecdc4, #96ceb4);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.alert-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.alert-warning {
    background: linear-gradient(45deg, #ffa726, #ff9800);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.alert-info {
    background: linear-gradient(45deg, #45b7d1, #96ceb4);
    color: white;
    box-shadow: 0 4px 15px rgba(69, 183, 209, 0.3);
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background: linear-gradient(45deg, #333, #555);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* 学生个人信息页面样式 */
.profile-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a56, #4ecdc4, #45b7d1);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.avatar-section {
    flex-shrink: 0;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.basic-info h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff9a56, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-id, .student-major {
    margin: 0.25rem 0;
    color: #666;
    font-size: 1.1rem;
}

.student-id span, .student-major span {
    color: #2c3e50;
    font-weight: 500;
}

.profile-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}

.profile-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff9a56, #4ecdc4);
    border-radius: 1px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #2c3e50;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item span:hover {
    background: rgba(255, 154, 86, 0.1);
    border-color: rgba(255, 154, 86, 0.3);
}

.files-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.file-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-item div {
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-file {
    color: #999;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .basic-info h2 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .basic-info h2 {
        font-size: 1.3rem;
    }
    
    .info-item span {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
}